<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='%{getText("map_new_title")}' />
		</title>
		<link href="/SCMDB/style/SuperEdit.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<script type="text/javascript" src="/SCMDB/map/preview.js"></script>
	</head>
	<body>
		<div class="main">
			<s:form action="mapAction!addMap" method="post" theme="simple"
				enctype="multipart/form-data" onsubmit="return false;">
				<!-- 主体开始 -->
				<table border="1" cellpadding="1" cellspacing="1"
					class="tableModify">

					<tr>
						<th>
							<s:property value='%{getText("map_new_th1")}' />
						</th>
						<td>
							<s:textfield name="mapName" cssClass="sInput" title="地图名称" />
							<input type="hidden" value="must-input" /> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("map_new_th2")}' />
						</th>
						<td>
							<div id="preview_wrapper">
								<div id="preview_fake">
									<img id="preview" src="/SCMDB/images/nophoto.gif" />
								</div>
							</div>
						</td>
					</tr>

					<tr>
						<th>
							<s:property value='%{getText("map_new_th3")}' />
						</th>
						<td id="uploadTd">
							<s:file name="mapAddr" cssClass="longFile" title="地图上传"
								onchange="onUploadImgChange(this,'mapAction_mapAddr','mapAction_mapWidth','mapAction_mapHeight');" />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("map_new_th4")}' />
						</th>
						<td>
							<s:textfield name="mapWidth" title="长度" readonly="true"
								maxLength="8"></s:textfield>
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("map_new_th5")}' />
						</th>
						<td>
							<s:textfield name="mapHeight" title="宽度" readonly="true"
								maxLength="8"></s:textfield>
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("map_new_th6")}' />
						</th>
						<td>
							<s:select list="#session.useType" listKey="key" listValue="value"
								name="isUsed">
							</s:select>
						</td>
					</tr>
				</table>
				<!-- 主体结束 -->
			</s:form>
		</div>
		<img id="preview_size_fake" />
	</body>
</html>

